package com.jule.teenpatti.game.network.protocol.protoutil;

import JoloProtobuf.GameSvr.JoloGame;
import com.jule.teenpatti.game.model.PlayerInfo;
import com.jule.teenpatti.game.play.AbstractTable;

public class TablePlayCurractionPlayerInfo {
    public static JoloGame.JoloGame_TablePlay_CurrActionPlayerInfoAck fillCurrActionPlayerInfoAck(PlayerInfo player, AbstractTable table){
        return JoloGame.JoloGame_TablePlay_CurrActionPlayerInfoAck.newBuilder()
                .setCurrBetUserId(player.getPlayerId())
                .setCurrBetUserSeatNum(player.getSeatNum())
                .setCurrBetCountDownSec(table.getCommonConfig().getBetCountDownSec())
                .setCurrBetIsCanShow(player.getIsCanShow())
                .setCurrBetIsCanSideShow(player.getIsCanSideShow())
                .setCurrBetBaseBetScore(table.getCurrBaseBetScore())
                .setBetRoundId(table.getCurrRoundId()).build();
    }

}
